package com.yuandian.business.monitor.service.impl;

import com.yuandian.api.business_monitor.po.AlarmParams;
import com.yuandian.api.business_monitor.vo.AlarmProportionVo;
import com.yuandian.business.monitor.mapper.AlarmTypeMapper;
import com.yuandian.business.monitor.service.IAlarmTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 告警类型服务实现类
 * </p>
 *
 * @author fucx
 * @since 2020-11-09
 */
@Slf4j
@Service("alarmTypeService")
public class AlarmTypeServiceImpl implements IAlarmTypeService {

	@Autowired
	private AlarmTypeMapper alarmTypeMapper;


	/**
	 * 查询告警类型占比数据
	 *
	 * @param params 参数
	 * @return 通用返回对象
	 */
	@Override
	public List<AlarmProportionVo> getAlarmProportion(AlarmParams params) {

		return alarmTypeMapper.getAlarmProportion(params);
	}


}
